import './product.less'
const Succeed = (props) => {
    const BackTop = () => {
        console.log(props);
        props.history.push('home')
    }
    return <div className="succeed_enroll">
        <div className={"succeed_top"}>
            <span className={"iconfont icon-fanhui2 back"} onClick={() => { BackTop() }} ></span>
            <span>{props.zhuang[1] == "01" ? "支付成功" : "支付失败"}</span>
        </div>
        <div className="succeed_cont">
            <div>
            <span className={props.zhuang[1] == "01" ?"iconfont icon-dui1 biu":"iconfont icon-dui1 biuo"}></span>
            </div>
            <div>
            <span> {props.zhuang[0]}</span>
            </div>
                
                
        </div>
        <div className="dizhi">
            <p><span>收货人：</span><span style={{marginLeft:"14px"}}>{props.dizhi.user_name}</span><span style={{marginLeft:"8px"}}>{props.dizhi.user_phone}</span></p>
            <p><span>收货地址：</span><span>{props.dizhi.site_site}</span></p>
        </div>
        <div className="succeed_btn">
            <button className="succeed_btn2" onClick={() => { BackTop() }} >返回首页</button>
        </div>
    </div >

}
export default Succeed